package com.xnyzc.lhy.mis.service.cms.user;

import com.xnyzc.lhy.common.exception.PangException;
import com.xnyzc.lhy.mis.entity.result.cms.user.CmsOaCUserImport;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description 用户导入
 * @Author zhuyubin
 * @Date 2019-08-28 16:46
 **/
public interface ICmsOaCUserImportService {

    /**
     * 获取模板url
     * @param tag
     * @param type 类型
     * @return
     */
    String getUserImportFile(String tag, Integer type);

    /**
     * 导入
     * @param sysUserId 后台用户
     * @param tag 租户
     * @param cmsOaCUserImportList 表格数据
     * @return
     */
    @Transactional(rollbackFor = PangException.class)
    String userImport(Long sysUserId, String tag, List<CmsOaCUserImport> cmsOaCUserImportList);
}
